<%-- $RCSFile: AddNewPortal.aspx $
 Apache license v2 2011 by Christian Surieux
 $Source: ?/AddonNice/PageModules/PortalsAdmin/AddNewPortal.aspx $
 $log$
 Revision 6 2010/08/09 10:51:22  christian.surieux
   Added Log comment to all .aspx .ascx .master files
 --%>
<%@ Page Language="c#" AutoEventWireup="False" Inherits="AddonNice.PageModules.PortalsAdmin.AddNewPortal"
    Codebehind="AddNewPortal.aspx.cs" MasterPageFile="~/MasterPages/ADNProperties.Master" %>
<%@ Register Assembly="Telerik.Web.UI"    Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register TagPrefix="cc1" Namespace="AddonNice.Configuration" Assembly="ADNCRM.Core" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentTitle" runat="server">
    <asp:Literal Text="<%$ Resources:ADNCRM,ADD_PORTAL %>" runat="server" ID="Literal1" />
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID='ContentPlaceHolderButtons2' runat="server">
    <asp:PlaceHolder ID="PlaceHolderButtons2" runat="server"></asp:PlaceHolder>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentSettingsTable" runat="server">
    <Telerik:radformdecorator id="FormDecorator1" runat="server" decoratedcontrols="Default" />
    <asp:ScriptManagerProxy ID="SCMPAddNewPortal" runat="server" />
    <table cellpadding="0" cellspacing="0">
        <tr>
            <td style='width:140px;'>
                <asp:Literal Text="<%$ Resources:ADNCRM,AM_SITETITLE %>" runat="server" ID="Literal2" />
            </td>
            <td >
                <asp:TextBox ID="TitleField" runat="server" style='width:350px;' />
            </td>
            <td >
                <asp:RequiredFieldValidator ID="RequiredTitle" runat="server" ErrorMessage="Required Field" ControlToValidate="TitleField" />
            </td>
        </tr>
        <tr>
            <td style='width:140px;'>
                <asp:Literal ID="Literal3" Text="<%$ Resources:ADNCRM,AM_PORTALALIAS %>" runat="server"  />
            </td>
            <td >
                <asp:TextBox ID="AliasField" runat="server" style='width:350px;' />
            </td>
            <td >
                <asp:RequiredFieldValidator ID="RequiredAlias" runat="server" ErrorMessage="Required Field" ControlToValidate="AliasField" />
            </td>
        </tr>
        <tr>
            <td style='width:140px;'>
                <asp:Literal Text="<%$ Resources:ADNCRM,AM_SITEPATH %>" runat="server" ID="Literal4" />
            </td>
            <td >
                <asp:TextBox ID="PathField" runat="server" style='width:350px;' />
            </td>
            <td >
                <asp:RequiredFieldValidator ID="RequiredSitepath" runat="server" ErrorMessage="Required Field" ControlToValidate="PathField" />
            </td>
        </tr>
        <tr>
            <td style="width:140px">
                <asp:Literal ID="Literal6" Text="<%$ Resources:ADNCRM,AM_CRMSERVERURL %>" runat="server" />
            </td>
            <td>
                <telerik:RadComboBox ID="CbCrmServer" runat="server" style='width:350px;' />
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td style="width:140px">
                <asp:Literal ID="Literal8" Text="<%$ Resources:ADNCRM,AM_PORTALTYPE %>" runat="server" />
            </td>
            <td>
                <asp:CheckBoxList id='CbType' RepeatColumns='1' RepeatDirection="Vertical" runat="server" style='width:350px;' >
                    <asp:ListItem Text="<%$ Resources:ADNCRM,AM_PORTAL_MULTICRM %>" Selected="False" Value='1' />
                    <asp:ListItem Text="<%$ Resources:ADNCRM,AM_PORTAL_MULTIORGANIZATION %>" Selected="False" Value='2' />
                </asp:CheckBoxList>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td style='width:140px;'>
                <asp:CheckBox ID="chkUseTemplate" runat="server" Text="<%$ Resources:ADNCRM,AM_USETEMPLATE %>" AutoPostBack="True" />
            </td>
            <td >
                <telerik:RadComboBox ID="CbPortalTemplates" runat="server" style='width:350px;' DataValueField="PortalID" DataTextField="PortalAlias" />
            </td>
            <td >
            </td>
        </tr>
		<tr><td colspan='3'>
				<asp:Label ID="ErrorMessage" CssClass="Error" runat="server" Visible="false" />
		</td></tr>
    </table>
	<br />
	<br />
	<asp:Panel ID='PanelSettings' runat="server">
        <cc1:SettingsTable ID="EditTable"  TableType="Portal" width='100%' runat="server" />
    </asp:Panel>
    <telerik:RadAjaxManagerProxy ID="RAMPAddNewPortal" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="chkUseTemplate">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="chkUseTemplate" />
                    <telerik:AjaxUpdatedControl ControlID="CbPortalTemplates" />
                    <telerik:AjaxUpdatedControl ControlID="PanelSettings" />
                    <telerik:AjaxUpdatedControl ControlID="ErrorMessage" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolderButtons1" runat="server">
    <br />
    <asp:PlaceHolder ID="PlaceHolderButtons" runat="server"></asp:PlaceHolder>
</asp:Content>
